package day0115;

public class Test5 {
    /*public static void main(String[] args) {
        float f = add(1.0F, 2.0F);
        System.out.println(f);//这里打印结果
    }*/
    static float add(float f1, float f2){
        return f1+f2;
    }


    public static void main(String[] args) {
        int sum=0;
        for (int i = 1; i <= 100; i++) {
            sum=sum+i;
        }
        System.out.println(sum);


        String d="";
        for (int i = 1; i <= 100; i++) {
            //d="1";
            d=  d+i +" ";
        }
        System.out.println(d);

    }

}















